<#include "/includes/header.ftl">
<#assign curr_argsid="">
<#assign curr_wsgsid="">
<#if areaCategory?has_content><#assign curr_argsid=areaCategory.sysId></#if>
<#if websiteCategory?has_content><#assign curr_wsgsid=websiteCategory.sysId></#if>

<div id='productlist_nav'>
	<#if areaPrimaryCategoryTrail?has_content>
			<b>Your Position:&nbsp;</b><A href='<@spring.url "/home.jsp#store"/>'>Website Home</A>&gt;&gt;
			<#list areaPrimaryCategoryTrail as g>
				<A href='<@spring.url "/listcategory2website.jsp?argsid=${g.sysId}&wsgsid=${curr_wsgsid}"/>'>${g.name?default("No-Name")}</A>&gt;&gt;
			</#list>
			<b><#if websiteCategory?has_content>${websiteCategory.name?default("No-Name")}</#if>:</b>					
	</#if>			
</div>
			
<div id='productlist_brands'>
	<#assign curr_product_gsid="">
	<#if websiteCategory?has_content>
		<#assign curr_product_gsid=websiteCategory.sysId>
		<#if websitePrimaryCategoryTrail?has_content>
				<#list websitePrimaryCategoryTrail as g>
					<A href='<@spring.url "/listcategory2website.jsp?wsgsid=${g.sysId}&argsid=${curr_argsid}"/>'>${g.name?default("No-Name")}</A>&gt;&gt;
				</#list><b>:</b><br/>					
		</#if>			
		<#if websiteChildCategoryList?has_content>
			<#list websiteChildCategoryList as g>
				<A href='<@spring.url "/listcategory2website.jsp?wsgsid=${g.sysId}&argsid=${curr_argsid}"/>'>${g.name?default("No-Name")}</A>
			</#list>
		</#if>					
	</#if>					
</div>

<div id='productlist_categories'>
	<#if areaCategory?has_content && areaChildCategoryList?has_content>
		<B>${areaCategory.name?default("No-Name")}分类:</B>
		<#list areaChildCategoryList as g>
			<A href='<@spring.url "/listcategory2website.jsp?argsid=${g.sysId}&wsgsid=${curr_wsgsid}"/>'>${g.name?default(g.id)}</A>
		</#list>				
	</#if>				
</div>

<div id='productlist_contents'>
	<#if websiteList?has_content>
		<#list websiteList as st>
			<li>
			<div class='product_desc'><A href='${st.id}'   target=_blank>${st.name?default("No-Name")}</A>
			&nbsp;&nbsp;<A href='<@spring.url "/editfavoritewebsite.php?wbsid=${st.sysId}"/>'>Add To Favorites</A>
			&nbsp;(<A href='<@spring.url "/updatewebsiteprimarycategory.php?type=area&wbsid=${st.sysId}"/>'>Set Primary Area</A>)
			
			<br/>${st.shortDesc?default("No-Short-Desc")}</div>
			</li>
		</#list>								
	</#if>						
</div>

<#if websiteList?has_content>
	<div id="productlist_pagefooter"><#include "/includes/pagefooter.ftl"></div>
</#if>
<#include "/includes/footer.ftl">